#include<stdio.h>
#include<graphics.h>
#include<easyx.h>
#include<time.h>
#include<stdbool.h>
#include<stdlib.h>
#include<string.h>
#include<mmsystem.h>
#include<math.h>

#pragma comment(lib,"winmm.lib")

#define Cards 10
#define WIN_WIDTH 900
#define WIN_HEIGHT 600

enum Love_supplies
{
	Bitter_gourd = 1,
	Chocolate,
	Homo
};

typedef struct bad_man
{
	int x, y;
	int frameindex;
	bool used;
	int row;
	int speed;
	int blood;
	bool dead;
}Badman;

typedef struct Plants
{
	int type;
	int frameIndex;
}Plants;

typedef struct Money
{
	float x;
	float y;
	int frameindex;
	int destY;
	bool used;
	int timer;

	float xoff;
	float yoff;
}Money;

typedef struct bullet
{
	int x, y;
	int speed;
	int row;
	bool used;
	bool blast;
	int frameIndex;
}bullet;

void gameInit();
void updateWindow();
void userClick();
void updateGame();
void startUI();


void createMoney();
void createBadmen();
void updateBadmen();
void updateMoney();

void drawBedman();
void shoot();

void collisionCheck();
void updateBullets();
